﻿@{
    ViewBag.Title = "ConfirmDialog";
    Layout = "~/Views/Shared/_Page.cshtml";
}

<h2>Confirm Dialog</h2>

<input type="button" id="btnConfirmDialog" value="Confirm Dialog" />

<script type="text/javascript">
    $(document).ready(function () {
        var confirmDialog = new ZeusConfirmDialog("confirmDlg", "confirm dialog", "This is a  confirm dialog!", "small");
        confirmDialog.Init();
        
        //confirm callback function
        function showConfirmDialog(param) {
            confirmDialog.Show();

            ZeusConfirmCallback.confirmCallback = function () {
                ZEUS.DEBUG.log("Callback end, passing param: " + param);
            }
        }

        $('#btnConfirmDialog').click(function () {
            showConfirmDialog('input param string');
        });
    });

</script>
